package com.sinosoft.emplmis.labor.entity;

import java.util.Date;

import com.sinosoft.framework.core.common.utils.ObjectUtil;

public class PersonInfoEntity {
    private String personinfoId;

    private String name;

    private String idcard;

    private Date birth;

    private String sex;

    private String education;

    private String professional;

    private String specialskills;

    private String specialty;

    private String health;

    private String hometelephone;

    private String residenceaddress;

    private String address;

    private String contactperson;

    private String phone;
    
    private String status;
    
    private String company;
    
    private String unemploymentdate;
    
    private String street;

    private String community;

    private String remark;

    private String inputStaffcode;

    private Date inputTime;

    private String inputDepartmentcode;

    private String modifyStaffcode;

    private Date modifyTreatment;
    
    private String losetouchdate;
	 
	private String recentdate;

    public String getPersoninfoId() {
        return personinfoId;
    }

    public void setPersoninfoId(String personinfoId) {
        this.personinfoId = personinfoId == null ? null : personinfoId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education == null ? null : education.trim();
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional == null ? null : professional.trim();
    }

    public String getSpecialskills() {
        return specialskills;
    }

    public void setSpecialskills(String specialskills) {
        this.specialskills = specialskills == null ? null : specialskills.trim();
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty == null ? null : specialty.trim();
    }

    public String getHealth() {
        return health;
    }

    public void setHealth(String health) {
        this.health = health == null ? null : health.trim();
    }

    public String getHometelephone() {
        return hometelephone;
    }

    public void setHometelephone(String hometelephone) {
        this.hometelephone = hometelephone == null ? null : hometelephone.trim();
    }

    public String getResidenceaddress() {
        return residenceaddress;
    }

    public void setResidenceaddress(String residenceaddress) {
        this.residenceaddress = residenceaddress == null ? null : residenceaddress.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getContactperson() {
        return contactperson;
    }

    public void setContactperson(String contactperson) {
        this.contactperson = contactperson == null ? null : contactperson.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street == null ? null : street.trim();
    }

    public String getCommunity() {
        return community;
    }

    public void setCommunity(String community) {
        this.community = community == null ? null : community.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getInputStaffcode() {
        return inputStaffcode;
    }

    public void setInputStaffcode(String inputStaffcode) {
        this.inputStaffcode = inputStaffcode == null ? null : inputStaffcode.trim();
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public String getInputDepartmentcode() {
        return inputDepartmentcode;
    }

    public void setInputDepartmentcode(String inputDepartmentcode) {
        this.inputDepartmentcode = inputDepartmentcode == null ? null : inputDepartmentcode.trim();
    }

    public String getModifyStaffcode() {
        return modifyStaffcode;
    }

    public void setModifyStaffcode(String modifyStaffcode) {
        this.modifyStaffcode = modifyStaffcode == null ? null : modifyStaffcode.trim();
    }

    public Date getModifyTreatment() {
        return modifyTreatment;
    }

    public void setModifyTreatment(Date modifyTreatment) {
        this.modifyTreatment = modifyTreatment;
    }

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getUnemploymentdate() {
		return unemploymentdate;
	}

	public void setUnemploymentdate(String unemploymentdate) {
		this.unemploymentdate = unemploymentdate;
	}
	
	public String getLosetouchdate() {
		return losetouchdate;
	}

	public void setLosetouchdate(String losetouchdate) {
		this.losetouchdate = losetouchdate;
	}

	public String getRecentdate() {
		return recentdate;
	}

	public void setRecentdate(String recentdate) {
		this.recentdate = recentdate;
	}

	/**
     * dto对象转换为entity
     * @param entity 供精人员信息实体类
     * @param from 供精人员信息dto对象
     */
    public void toEntityData(PersonInfoEntity entity,Object from,String... args)
    {
    	try {
			ObjectUtil.oldToNew(entity, from, args);
		} catch (Exception e) {
			e.printStackTrace();
		}
    }
}